package com.cma.model.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 数据库表【sys_role】对应的entity对象
 *
 * @author  hbb
 * @date 2017-01-17 11:28:23
*/
@Entity
@Table(name = "sys_role")
public class SysRole extends BaseDbEntity implements Serializable {


// 角色名称
@Column(name = "role_name", nullable = false)
private java.lang.String roleName;


// 角色编码
@Column(name = "role_code", nullable = false)
private java.lang.String roleCode;


// 状态
@Column(name = "state", nullable = false)
private java.lang.String state;


// 操作人
@Column(name = "creator", nullable = false)
private java.lang.String creator;


// 操作时间
@Column(name = "crtime", nullable = false)
private java.util.Date crtime;






    // ================================================================================================



    /**
     * 获取对象的属性【角色名称】
     *
     * @return java.lang.String
     */
public java.lang.String getRoleName() {
        return roleName;
        }

/**
 * 设置对象的属性【角色名称】
 * @param roleName
 */
public void setRoleName(java.lang.String roleName) {
        this.roleName = roleName;
        }

    /**
     * 获取对象的属性【角色编码】
     *
     * @return java.lang.String
     */
public java.lang.String getRoleCode() {
        return roleCode;
        }

/**
 * 设置对象的属性【角色编码】
 * @param roleCode
 */
public void setRoleCode(java.lang.String roleCode) {
        this.roleCode = roleCode;
        }

    /**
     * 获取对象的属性【状态】
     *
     * @return java.lang.String
     */
public java.lang.String getState() {
        return state;
        }

/**
 * 设置对象的属性【状态】
 * @param state
 */
public void setState(java.lang.String state) {
        this.state = state;
        }

    /**
     * 获取对象的属性【操作人】
     *
     * @return java.lang.String
     */
public java.lang.String getCreator() {
        return creator;
        }

/**
 * 设置对象的属性【操作人】
 * @param creator
 */
public void setCreator(java.lang.String creator) {
        this.creator = creator;
        }

    /**
     * 获取对象的属性【操作时间】
     *
     * @return java.util.Date
     */
public java.util.Date getCrtime() {
        return crtime;
        }

/**
 * 设置对象的属性【操作时间】
 * @param crtime
 */
public void setCrtime(java.util.Date crtime) {
        this.crtime = crtime;
        }

        // ================================================================================================

        public String toString(){
            StringBuffer sb = new StringBuffer();
            sb.append("SysRole=====>");
            sb.append("{");
                                sb.append("id=>"+this.id).append(", ");
                                sb.append("roleName=>"+this.roleName).append(", ");
                                sb.append("roleCode=>"+this.roleCode).append(", ");
                                sb.append("state=>"+this.state).append(", ");
                                sb.append("creator=>"+this.creator).append(", ");
                                sb.append("crtime=>"+this.crtime).append(", ");
                                sb.append("createTime=>"+this.createTime).append(", ");
                                sb.append("updateTime=>"+this.updateTime).append(", ");
                        sb.append("}");
            return sb.toString();
        }

}